/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package common.model.message;

import common.model.Visitor;

/**
 *
 * @author nicolas
 */
public abstract class AbstractVisitorBasedMessage implements Message {

    //Variables declarations
    protected Visitor visitor = null;

    public AbstractVisitorBasedMessage(Visitor visitor) {
        this.visitor = visitor;
    }

    public AbstractVisitorBasedMessage() {
        this.visitor = new Visitor();
    }

    public Visitor getVisitor() {
        return visitor;
    }

    abstract public String messageToString();

}
